import baseUrl from './base-url-config'

const { product, adyApi, rtsmApi, userApi } = baseUrl

export default {
  // 登录验证
  loginVerify: {
    url: `${userApi}/edc/sys/auth/login`,
    method: 'POST',
  },
  // 退出登录
  logout: {
    url: `${userApi}/edc/sys/auth/logout`,
    method: 'POST',
  },
  // 获得登录用户的菜单列表
  getListMenus: {
    url: `${userApi}/edc/sys/auth/list-menus`,
    method: 'GET',
  },
  // 获取登录用户的权限信息
  getPermissionInfo: {
    url: `${userApi}/edc/sys/auth/get-permission-info`,
    method: 'GET',
  },

  // 获取登录用户信息
  qryUserInfoByToken: {
    url: `${userApi}/edc/sys/auth/get-user-info`,
    method: 'GET',
  },

  // 获取当前项目是否在升级中
  qryProjectIsUpgrades: {
    url: `${product}/edc/builder/project/isUpgrading`,
    method: 'GET',
    hasLoading: false,
  },

  // 查询一体化所有系统的权限
  qryAllSystemUserInfo: {
    url: `${adyApi}/v1/ctms/open_api/get-all-token`,
    method: 'post',
  },

  // 查询随机系统的权限
  qryITMSToken: {
    url: `${rtsmApi}/rtsm/open_api/get-rtsm-token`,
    method: 'post',
  },
  
  // 获得登录用户的系统列表
  getListSystemType: {
    url: `${userApi}/edc/sys/auth/list-systemType`,
    method: 'GET',
  },
}
